package com.wuwei.elearning.question.service;

import com.wuwei.elearning.question.domain.UserRecord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 用户做题记录表，每一个该表都对应一个用户做题记录 服务类
 * </p>
 *
 * @author wuwei
 * @since 2024-03-28
 */
public interface UserRecordService extends IService<UserRecord> {

    void addOrUpdate(Integer index, Long chapterId, Long account,Integer rightNum, Integer selectedNum);

    /**
     * 删除用户做题的记录
     * 需要删除user_record表和select_record表
     * @param chapterId chapter的主键
     * @param account user表的account
     * @return
     */
    void deleteBySelectId(Long chapterId, Long account);
}
